#include "widget.h"
#include "ui_widget.h"
#include"QDebug"
Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);

}

Widget::~Widget()
{
    delete ui;
}


void Widget::on_textEdit_textChanged()
{
    const QString&content=ui->textEdit->toPlainText();
    ui->label->setText(content);
}

void Widget::on_textEdit_selectionChanged()
{
   qDebug()<<"选中";
}
